/**
 *  Main ( in )
 */

void function(n){
	var win = window, undefined, NS = (n in win) ? win[n] : (win[n] = {}),
	_head = document.getElementsByTagName('head')[0],
	_checkFeatureEvent = function(el,sType){//检测DOM元素是否支持某事件.
		if (sType in el ) return true ;
		el.setAttribute(sType,'');
		return typeof el[sType] == 'function'; // ff
	},
	_bindLoad = function(el,fHandler){//注册script加载执行完毕的回调监听.
		if(_checkFeatureEvent(el,'onload')){
			el.onload = function (){
				fHandler && fHandler() ;
				_head.removeChild(el); 
				el = el.onload = null ;
			}
		}
		else {//ie 
			el.attachEvent('onreadystatechange',function () {
				if (/loaded|complete/.test(el.readyState)) {
					fHandler && fHandler();
					el.detachEvent('onreadystatechange', arguments.callee);
					_head.removeChild(el); 
					el = null;
				}
			});
		}
	},
	hashlist = location.search.substr(1).split('&'),hash = (NS.hash = {});
	
	for(var i = 0, l = hashlist.length; i < l; i++)
	{
		index = hashlist[i].indexOf('=');
		hash[hashlist[i].substr(0,index)] = hashlist[i].substr(index+1);
	}
	
	NS.loadJS = function ( url, fn, get, chr){
		typeof get == 'string' && (url = url + '?' + get);
		var el = document.createElement('script');
		el.charset = chr || 'utf-8';
		el.src = url;
		_bindLoad(el,fn);
		_head.appendChild(el) ;
	};
	
	NS.loadJS('http://feo.staticsdo.com/js/import/http%253A%252F%252Fx.res.ibw.staticsdo.com%252F2.1.0.0%252Fxml%252Fcrossdomain.xml/' + hash['slm'] + '/child.js',win['__IBWREADY__']);
}('__IBW__');